package cn.zhihong.org.domain;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

//@Getter //相当于提供了get方法
//@Setter //相当于提供了set方法
@Data  //get set hashcode  equals toString
public class Department {
    //主键
    private Long id;
    //说明
    private String sn;
    //名字
    private String name;
    //部门层级路径 /2/5/10
    private String dirPath;
    //状态 （0：启动 -1 ：禁用）
    private Integer state;
    //没用
    private Long manager_id;

    //部门经理
    private Employee manager;

    //没用
    private Long parent_id;

    //父部门
    private Department parent;

    //子部门组
    private List<Department> children = new ArrayList<>();

}
